Skip to content

Improvement/scroll fade table - #1072

Merged
bert-e merged 3 commits into
development/1.0from
improvement/scroll-fade-table
Jul 17, 2026
Merged

Improvement/scroll fade table#1072
bert-e merged 3 commits into
development/1.0from
improvement/scroll-fade-table

Conversation

@JeanMarcMilletScality

@JeanMarcMilletScality JeanMarcMilletScality commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Tablev2 now shows a subtle bottom fade while its body scrolls — a cue that there's more content below — which auto-hides once you reach the end. Storybook is also wrapped in ScrollbarWrapper so the effect renders in stories.

Context

core-ui already ships a .scroll-fade CSS utility (in ScrollbarWrapper) that gives any scrollable element an auto-hiding bottom fade — but nothing applied it. This turns it on for tables, so long lists get a "more below" affordance instead of a hard-cut edge.

Screenshots

Tablev2 scroll-fade — before (hard edge) vs. mid-scroll fade-in vs. fade-out at bottom

Left → right: today's hard-cut edge; the new bottom fade while scrolling (note FirstName9 softening at the edge); and the fade auto-hidden once the last row is reached. Chromium only — the effect is gated behind @supports (animation-timeline: scroll()), so Firefox/Safari stable render the table with no fade.

Review focus

  • 🟡 tablev2/TableCommon.tsx › SmoothScrollDiv — the fade is applied to the shared virtualized scroll container, so it turns on for every Tablev2 table at once (not per-instance opt-in). Visual-only and it degrades gracefully: the effect is behind @supports (animation-timeline: scroll()), so Chromium shows the fade and Firefox/Safari stable simply render the table with no fade (no breakage). className is merged with any forwarded value (['scroll-fade', props.className].filter(Boolean).join(' ')) rather than replacing it, mirroring how style is already merged on the line above — so a future className from react-window's <List> isn't clobbered.
  • .storybook/preview.tsx — Storybook-only. Wraps stories in ScrollbarWrapper (which injects the @property/keyframes the utility needs); no effect on shipped code.

How to test

  1. npm run storybook (port 3001).
  2. Open a Tablev2 story with enough rows to overflow the body (Components → Data Display → Table).
  3. Scroll the table body → a fade appears at the bottom edge; scroll to the very bottom → the fade disappears.
  4. Non-Chromium check: in Firefox/Safari the table renders normally with no fade (expected — scroll-driven-animation feature gate).

@bert-e

bert-e commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Hello jeanmarcmilletscality,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@bert-e

bert-e commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

@JeanMarcMilletScality
JeanMarcMilletScality force-pushed the improvement/scroll-fade-table branch from 9a92fd0 to ac9e2e5 Compare July 8, 2026 14:32
@bert-e

bert-e commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

ref={ref}
{...props}
style={{ ...props.style, scrollBehavior: 'smooth' }}
className="scroll-fade"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

className="scroll-fade" placed after {...props} silently overrides any className that react-window forwards to the outer element. FixedSizeList passes its own className prop through to outerElementType — currently the <List> here doesn't set one, but this will break silently if it ever does. Merge instead of replace, consistent with how style is already handled on the line above.

Suggested change
className="scroll-fade"
className={`scroll-fade${props.className ? ` ${props.className}` : ''}`}

JeanMarcMilletScality and others added 2 commits July 8, 2026 16:40
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JeanMarcMilletScality
JeanMarcMilletScality force-pushed the improvement/scroll-fade-table branch from ac9e2e5 to 0180bfa Compare July 8, 2026 14:41
@bert-e

bert-e commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

@JeanMarcMilletScality
JeanMarcMilletScality marked this pull request as ready for review July 13, 2026 09:33
@bert-e

bert-e commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

@bert-e

bert-e commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Conflict

There is a conflict between your branch improvement/scroll-fade-table and the
destination branch development/1.0.

Please resolve the conflict on the feature branch (improvement/scroll-fade-table).

git fetch && \
git checkout origin/improvement/scroll-fade-table && \
git merge origin/development/1.0

Resolve merge conflicts and commit

git push origin HEAD:improvement/scroll-fade-table

…t/scroll-fade-table

# Conflicts:
#	.storybook/preview.tsx
@bert-e

bert-e commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

@JeanMarcMilletScality

Copy link
Copy Markdown
Contributor Author

/approve

@bert-e
bert-e merged commit 9326f02 into development/1.0 Jul 17, 2026
8 checks passed
@bert-e

bert-e commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/1.0

Please check the status of the associated issue None.

Goodbye jeanmarcmilletscality.

The following options are set: approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants